import React, { Component } from "react";
import { Dimensions, ImageBackground } from "react-native";

export default class Block extends Component{
  render() {

    return (
      <ImageBackground
        source={this.props.block}
        style={{
          width:Dimensions.get("window").width/400*30,
          height:Dimensions.get("window").height/3,
          backgroundColor: "blue",
          position: "absolute",
          left:this.props.position[0],
          top:this.props.position[1],
        }}
      >

      </ImageBackground>
    );
  }
}
